{extend name="base"/}
{block name="css"}
<style>
    .layui-body {
        position: absolute;
        left: 0px;
        right: 0;
        top: 20px;
        bottom: 0;
        z-index: 998;
        width: auto;
        overflow: hidden;
        overflow-y: auto;
        box-sizing: border-box;
    }
</style>
{/block}
{block name="content"}
<div class="layui-container">
    <div class="layui-row">
        <div class="layui-col-lg12">
            <fieldset class="layui-elem-field">
                <legend>轮播图管理 - 编辑图片</legend>
                <div class="layui-field-box">
                    <form id="userform" class="layui-form" style="width:80%;" enctype="multipart/form-data">
                        <div class="layui-form-item">
                            <label class="layui-form-label">轮播图片</label>
                            <div class="layui-input-block">
                                <div class="layui-input-inline">
                                    <button type="button" class="layui-btn layui-btn-normal" id="test1">上传轮播图片</button>
                                    <p id="demoText"></p>
                                </div>
                                <div class="layui-input-inline">
                                    <img id="preview" width="80px" src="" >
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">链接</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input dataIntegral" name="link" value="{$data.link}"   placeholder="请输入链接">
                                <input type="hidden" name="id" value="{$data.id}" >
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">排序</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input dataIntegral" name="sort" value="{$data.sort}"   placeholder="请输入排序">
                                <input type="hidden" name="id" value="{$data.id}" >
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit="" lay-filter="editNews">立即提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </fieldset>
        </div>
    </div>
</div>
{/block}
{block name="js"}
        <script type="text/javascript" src="__ADMIN__/js/addBanner.js"></script>
{/block}